<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 开发环境版本 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  </head>
  <body>
    <!-- 
      v-text:
            设置标签的文本内容（textContent）
            默认写法会替换全部内容，替换指定内容：差值表达式{{}}
            内容支持表达式
     -->
    <div id="app">
      <h2 v-text="message +'!'">撒日朗</h2>
      <h2 v-text="info +'!'">撒日朗</h2>
      <h2>{{message +'!'}}撒日朗</h2>
    </div>
    <script>
      var app = new Vue({
        el: "#app",
        data: {
          message: "这瓜多少钱一斤啊",
          info: "你爱要不要吧",
        },
      });
    </script>
  </body>
</html>
